﻿using Grow.Domain.Object;
using System.Linq.Expressions;

namespace Grow.Domain.Repository.CreateDomainRepository
{
    /// <summary>
    /// 实体 构建对象
    /// </summary>
    /// <typeparam name="TEntity"></typeparam>
    public interface IEntityBuilder<TEntity>
        where TEntity : class, IEntity
    {
        /// <summary>
        /// 设置表 备注
        /// </summary>
        /// <param name="comment"></param>
        /// <returns></returns>
        IEntityBuilder<TEntity> HasComment(string comment);
        /// <summary>
        /// 获取 Table 属性 构建对象
        /// </summary>
        /// <typeparam name="TProperty"></typeparam>
        /// <param name="propertyExpression"></param>
        /// <returns></returns>

        IEntityPropertyBuilder<TEntity, TProperty> GetEntityPropertyBuilder<TProperty>(Expression<Func<TEntity, TProperty>> propertyExpression);
    }
}
